import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    // const checktoken = app.middleware.checktoken();
    router.post("/api/user/order/create", controller.ctrlOrder.create);
    router.get("/api/user/order", controller.ctrlOrder.get);
    router.get("/api/user/detail/:id", controller.ctrlOrder.detail);
    router.post("/api/user/order/del/:id", controller.ctrlOrder.del);

    router.post("/api/user/order/edit/:id", controller.ctrlOrder.edit);
};
